/**
 * Copyright (C) 2021 - 2031 O-Cubes Co., Ltd.
 */

/****************************************************************
 *  @file    dw_i2c_hal_cfg.h
 *  @brief   Designware i2c controller hal configuration header file
 *  @version v1.0
 *  @date    03. Apr. 2023
 *  @author  liuchao
 ****************************************************************/

#ifndef __DW_I2C_HAL_CFG_H__
#define __DW_I2C_HAL_CFG_H__

#ifndef DW_I2C_ALLOW_RESTART
	#define DW_I2C_ALLOW_RESTART                    (1)     /*!< allow restart configuration */
#endif

#ifndef DW_I2C_SPECIAL_START_BYTE
	#define DW_I2C_SPECIAL_START_BYTE               (0)     /*!< SPECIAL bit enable in IC_TAR */
#endif

#ifndef DW_I2C_MST_10_BIT_ADDR_SUPPORT
	#define DW_I2C_MST_10_BIT_ADDR_SUPPORT          (1)     /*!< enable 10-bit address mode */
#endif

#ifndef DW_I2C_SLV_10_BIT_ADDR_SUPPORT
	#define DW_I2C_SLV_10_BIT_ADDR_SUPPORT          (1)     /*!< slave 10-bit addressing mode */
#endif

#ifndef DW_I2C_DYNAMIC_TAR_UPDATE_SUPPORT
	#define DW_I2C_DYNAMIC_TAR_UPDATE_SUPPORT       (0)     /*!< Dynamic target address update support */
#endif

#ifndef DW_I2C_DISABLE_MAX_T_POLL_CNT
	#define DW_I2C_DISABLE_MAX_T_POLL_CNT           (1250)  /*!< Timeout count, approximate to be 25us in 50MHz CPU @ Standard mode */
#endif

#ifndef DW_I2C_CALC_FIFO_LEN_ENABLE
	#define DW_I2C_CALC_FIFO_LEN_ENABLE             (1)     /*!< Default enable calculate fifo length */
#endif

#endif /* __DW_I2C_HAL_CFG_H__ */
